<?php if(!defined('IN_KKFRAME')) exit('Access Denied'); ?>
<?php include template('header'); ?>
	<div class="container">
		<ul class="breadcrumb">
			<li><a href="./"><i class="icon-home"></i></a> <span class="divider">/</span></li>
			<li><a href="my.php">我的歌曲</a> <span class="divider">/</span></li>
			<li class="active"><?php if($songdata['status']=='1'){ ?>提交审核<?php }else{ ?>修改信息<?php } ?></li>
		</ul>
		<div class="row-fluid">
			<div class="span12">
				<div class="alert alert-info"><strong>提示</strong> 一般的歌曲会自动识别歌曲信息，直接提交即可，如果有识别错误[可能性不大]或者乱码请自行编辑歌曲信息。</div>
				<form class="form-horizontal" action="my.php?action=doedit" method="post">
					<input type="hidden" name="id" value="<?php echo $songdata['id']; ?>">
					<div class="control-group">
						<label class="control-label" for="inputTitle">标题</label>
						<div class="controls">
							<input type="text" id="inputTitle" name="title" placeholder="请输入歌曲的标题" value="<?php echo $songdata['title']; ?>">
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="inputArtist">艺术家</label>
						<div class="controls">
							<input type="text" id="inputArtist" name="artist" placeholder="请输入歌曲的艺术家" value="<?php echo $songdata['artist']; ?>">
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="inputAlbum">专辑</label>
						<div class="controls">
							<input type="text" id="inputAlbum" name="album" placeholder="请输入歌曲所属的专辑" value="<?php echo $songdata['album']; ?>">
						</div>
					</div>
					<?php if($songdata['type']=='0'){ ?>
					<div class="control-group">
						<label class="control-label" for="inputType">品质</label>
						<div class="controls">
							<label class="radio inline"><input type="radio" name="type" id="inputType" value="1" checked> <?php if(getSetting('quality_1')){ echo getSetting('quality_1'); }else{ ?>渣音质<?php } ?></label>&nbsp;
							<label class="radio inline"><input type="radio" name="type" id="inputType" value="2"> <?php if(getSetting('quality_2')){ echo getSetting('quality_2'); }else{ ?>高音质<?php } ?></label>&nbsp;
							<label class="radio inline"><input type="radio" name="type" id="inputType" value="3"> <?php if(getSetting('quality_3')){ echo getSetting('quality_3'); }else{ ?>无损<?php } ?></label>
						</div>
					</div>
					<?php } ?>
					<div class="control-group">
						<div class="controls">
							<button type="submit" class="btn btn-primary">提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
<?php include template('footer'); ?>